<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>小红书导航栏 </title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "PingFang SC", "Helvetica Neue", Arial, sans-serif;
        }
        
        body {
            background-color: #f5f5f5;
            padding: 20px;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
        }
        
        .container {
            width: 100%;
            max-width: 1200px;
            background: white;
            border-radius: 12px;
            box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
            padding: 30px;
        }
        
        h1 {
            color: #ff2442;
            text-align: center;
            margin-bottom: 30px;
            font-size: 28px;
        }
        
        .description {
            background: #fff9fa;
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 30px;
            border-left: 4px solid #ff2442;
        }
        
        .description p {
            color: #666;
            line-height: 1.6;
        }
        
        /* 小红书导航栏样式 */
        .xiaohongshu-navbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 20px;
            background-color: white;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            border-radius: 8px;
            margin-bottom: 30px;
        }
        
        /* 精确的小红书Logo样式 */
        .navbar-logo {
            display: flex;
            align-items: center;
            gap: 10px;
            text-decoration: none;
        }
        
        .logo-icon {
            width: 30px;
            height: 30px;
            background: linear-gradient(135deg, #ff2442, #ff2442);
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }
        /* 小红书Logo的红 */
        .logo-icon::before {
            content: '红';
            color: white;
            font-weight: bold;
            font-size: 16px;
            z-index: 2;
            position: relative;
        }

        
        .logo-icon::after {
            content: '';
            position: absolute;
            top: -5px;
            right: -5px;
            width: 15px;
            height: 15px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
        }
        
        .logo-text {
            font-size: 20px;
            font-weight: bold;
            color: #ff2442;
            letter-spacing: -0.5px;
        }
        
        .navbar-menu {
            display: flex;
            gap: 25px;
        }
        
        .navbar-menu a {
            text-decoration: none;
            color: #333;
            font-size: 16px;
            transition: color 0.2s;
            position: relative;
        }
        
        .navbar-menu a:hover {
            color: #ff2442;
        }
        
        .navbar-menu a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background-color: #ff2442;
            transition: width 0.3s;
        }
        
        .navbar-menu a:hover::after {
            width: 100%;
        }
        
        .navbar-actions {
            display: flex;
            gap: 15px;
        }
        
        .search-box {
            display: flex;
            align-items: center;
            background: #f5f5f5;
            border-radius: 20px;
            padding: 8px 15px;
            width: 200px;
        }
        
        .search-box input {
            border: none;
            background: transparent;
            outline: none;
            width: 100%;
            font-size: 14px;
        }
        
        .btn {
            padding: 8px 16px;
            border-radius: 20px;
            border: none;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .btn-login {
            background: transparent;
            color: #ff2442;
            border: 1px solid #ff2442;
        }
        
        .btn-login:hover {
            background: #fff9fa;
        }
        
        .btn-register {
            background: #ff2442;
            color: white;
        }
        
        .btn-register:hover {
            background: #e61e3c;
        }
        
        
/* 响应式设计 */
        @media (max-width: 768px) {
            .xiaohongshu-navbar {
                flex-wrap: wrap;
            }
            
            .navbar-menu {
                order: 3;
                width: 100%;
                justify-content: center;
                margin-top: 15px;
            }
            
            .search-box {
                width: 150px;
            }
        }
        
        .code-section {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 8px;
            margin-top: 30px;
            border: 1px solid #e9ecef;
        }
        
        .code-section h3 {
            color: #333;
            margin-bottom: 15px;
        }
        
        .code-section pre {
            background: #2d2d2d;
            color: #f8f8f2;
            padding: 15px;
            border-radius: 6px;
            overflow-x: auto;
            font-family: 'Courier New', monospace;
            font-size: 14px;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>小红书</h1>
        
        <!-- 小红书导航栏 -->
        <div class="xiaohongshu-navbar">
            <!-- Logo部分 -->
            <a href=" " class="navbar-logo">
                <div class="logo-icon"></div>
                <div class="logo-text">小红书</div>
            </a >
            
            <!-- 导航菜单 -->
            <div class="navbar-menu">
                <a href="#">首页</a >
                <a href="#">发现</a >
                <a href="#">关注</a >
                <a href="#">消息</a >
                <a href="#">我</a >
            </div>
            
            <!-- 搜索和操作区域 -->
            <div class="navbar-actions">
                <div class="search-box">
                    <input type="text" placeholder="搜索笔记、用户或话题">
                </div>
                <button class="btn btn-login">登录</button>
                <button class="btn btn-register">注册</button>
            </div>
        </div>
        
</body>
</html>
```